package vamp
/**
 * The vamp_serviceweb.Poicomment entity.
 *
 * @author    
 *
 *
 */
class Poicomment {
    static mapping = {
         table 'poicomment'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'idpoicomment'
         poi column:'idpoi'
         member column:'idmember'
    }
    Date datetime
    String comment
    // Relation
    Poi poi
    // Relation
    Member member

    static constraints = {
        datetime()
        comment(blank: false)
        poi()
        member()
    }
    String toString() {
        return "${id}"
    }
}
